<style lang="less">
@import '../../../styles/common.less';
</style>

<template>
    <Tabs v-model="curTab" @on-click="clickTab">
        <TabPane label="融资合同" name="financeContract">
            <finance-contract :accountTaskParams='accountTaskParams'></finance-contract>
        </TabPane>
    </Tabs>
</template>

<script>
import financeContract from './finance-contract.vue'
export default {
  name: 'finance-account',
  components: {
    financeContract
  },
  data () {
    return {
      curTab: null,
      accountTaskParams: {// 传递给子tab的参数对象
        loanId: '', // this.$route.query.id,
        custCardNo: '',
        financeContract: false
      }
    }
  },
  computed: {
    avatorImage () {
      return localStorage.avatorImgPath
    }
  },

  created () {
    // 初始化当前页面请求对象实例
    this.$ajax = this.$util.ajax()
    this.accountTaskParams.loanId = this.collectTaskParams.loanId
    this.accountTaskParams.custCardNo = this.collectTaskParams.custCardNo
    this.initpage()
  },
  methods: {
    // 点击tab事件
    clickTab (tabName) {
    },
    initpage: function () {
      // 加载默认tab页签数据
    }
  },
  props: {
    collectTaskParams: Object
  }
}
</script>
